<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			// 原型链继承
			function Show(){
				this.name = '哈哈';
			}
			
			function Run(){
				this.age = '20';
			}
			Run.prototype = new Show();  //可以通过prototype来实现
			var show = new Run();
			console.log(show.name)
		</script>
	</body>
</html>
